package cn.caplike.demo.repository.design.pattern.responsibilitychain;

abstract class Handler {
    protected Handler next;

    public Handler() {
    }

    public Handler(Handler next) {
        this.next = next;
    }

    abstract boolean handle(String message, Integer days);

    protected final Handler next() {
        return next;
    }
}
